package com.swpu.service_drink.mapper;

import com.swpu.service_drink.entity.DrinkRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.swpu.service_drink.entity.vo.DrinkCountChartVo;
import com.swpu.service_drink.entity.vo.DrinkRecordChartDataVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chaichai
 * @since 2024-02-28
 */
@Mapper
public interface DrinkRecordMapper extends BaseMapper<DrinkRecord> {
    List<DrinkRecordChartDataVo> getDrinkDataToChart(String openid, Date startDate,Date endDate);
    List<DrinkCountChartVo> getDrinkCountToChart(String openid,Date startDate,Date endDate);

}
